﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true"
    CodeBehind="OrganizationDetails.aspx.cs" Inherits="MockPrjTeam2.Pages.Forms.OrganizationDetails" %>

<%@ Register TagPrefix="wuc" TagName="PremiseFrame" Src="~/Pages/ControlOrg/PremiseFrame.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../../Resource/CSS/style/reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/root.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/grid.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/typography.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-plugin-base.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/toogle.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tipsy.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.uniform.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tablesorter.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/popup.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.widget.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.accordion.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.tabs.js") %>"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });

        function ConfirmApproval(message) {
            if (confirm(message)) {
            } else {

            }
        }
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
      <div class="grid740 simplebox relative">
           <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" ValidationGroup="orgs"
             />
        <h2 style="color: #008000; background-color: #CCFFFF;">
            Organization Details</h2>
        <div id="tabs">
            <ul>
                <li>
                    <asp:HyperLink ID="LinkDetails01" NavigateUrl="#DetailsPanel01" runat="server">Details 1</asp:HyperLink></li>
                <li>
                    <asp:HyperLink ID="LinkDetails02" NavigateUrl="#DetailsPanel02" runat="server">Details 2</asp:HyperLink></li>
               
                <li>
                    <asp:HyperLink ID="LinkDetails03" NavigateUrl="#DetailsPanel03" runat="server" Visible="False">Details 3</asp:HyperLink></li>
               
                <li>
                    <asp:HyperLink ID="LinkDetails04" NavigateUrl="#DetailsPanel04" runat="server">Details 4</asp:HyperLink></li>
                <li>
                    <asp:HyperLink ID="LinkDetails05" NavigateUrl="#DetailsPanel05" runat="server">Details 5</asp:HyperLink></li>
                <li>
                    <asp:HyperLink ID="LinkDetails06" NavigateUrl="#DetailsPanel06" runat="server" Visible="False">BU/Directorates</asp:HyperLink></li>
            </ul>
            <asp:HiddenField ID="HiddenFieldOrganizationId" runat="server"/> <asp:HiddenField ID="hdnOrganizationName" runat="server" />
            <span class="top-right-cornor">
                 <asp:Button CssClass="button" ID="ButtonInactive" runat="server" Text="In-active"
                    CommandName="active" CausesValidation="False" OnCommand="ButtonInactive_Command"
                     />
                <asp:Button CssClass="button" ID="ButtonSave" runat="server" Text="Save" 
                onclick="ButtonSave_Click" ValidationGroup="orgs" 
                     />
                <asp:Button CssClass="button" ID="ButtonBack" runat="server" Text="Back" PostBackUrl="~/Pages/Views/ListOrganizations.aspx" 
                     />
            </span>
            <asp:Panel ID="DetailsPanel01" ClientIDMode="Static" runat="server">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelOrganisationName" runat="server" Text="Organisation Name" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxOrganizationName">    
                              <asp:RequiredFieldValidator ID="RequiredOrganizationName" runat="server" ErrorMessage="*Please input Organisation Name "
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxOrganizationName" ValidationGroup="orgs" />

                        </asp:Label><asp:TextBox ID="TextBoxOrganizationName" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelPreferredOrganization" runat="server" Text="Preferred Organisation"
                            CssClass="st-labeltext level1-5" AssociatedControlID="CheckBoxPreferredOrganization"></asp:Label><asp:CheckBox
                                ID="CheckBoxPreferredOrganization" runat="server" />
                    </div>
                    <div class="clear">
                        <asp:Label ID="lblCheckOrgName" runat="server" ForeColor="#FF3300"></asp:Label></div></div><div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelShortDescription" runat="server" Text="Organisation Short Description"
                            CssClass="st-labeltext level1 required" AssociatedControlID="TextBoxShortDescription">

                                       <asp:RequiredFieldValidator ID="RequiredShortDescription" runat="server" ErrorMessage="* Please input Short Description "
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxShortDescription" ValidationGroup="orgs"/>

                        </asp:Label><asp:TextBox ID="TextBoxShortDescription" CssClass="st-forminput" runat="server"
                            Width="210px" TextMode="MultiLine" Rows="3"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelInterest" runat="server" Text="Expression of Interest" CssClass="st-labeltext level1-5"
                            AssociatedControlID="CheckBoxInterest"></asp:Label><asp:CheckBox ID="CheckBoxInterest"
                                runat="server" AutoPostBack="True" 
                            oncheckedchanged="CheckBoxInterest_CheckedChanged" /><div class="clear">
                                </div>
                        <br />
                        <asp:Label ID="LabelTypeOfBusiness" runat="server" Text="Type of Business" CssClass="st-labeltext level1 required"
                            AssociatedControlID="txtBussinessName">
                            <asp:RequiredFieldValidator ID="RequiredTypeOfBusiness" runat="server" ErrorMessage="* Please input type of bussiness"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="txtBussinessName" />
                        </asp:Label><asp:TextBox ID="txtBussinessName" CssClass="st-forminput st-disable"
                            ClientIDMode="Static" Enabled="False" runat="server" Width="150px"></asp:TextBox><asp:LinkButton
                                ID="ButtonTypeOfBusinessLookup" runat="server" CssClass="hg-blue" Text="Lookup"
                                OnClientClick="OpenPopupBussiness()" /></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelLeadContact" runat="server" Text="Lead Contact" CssClass="st-labeltext level1"
                            AssociatedControlID="txtContact"></asp:Label><asp:TextBox ID="txtContact" ClientIDMode="Static"
                                CssClass="st-forminput st-disable" runat="server" Width="150px" Enabled="False"></asp:TextBox><asp:LinkButton
                                    ID="ButtonContactLookup" runat="server" CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopup()" />
                        <asp:HiddenField ID="hdnContactId" ClientIDMode="Static" runat="server" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelSicCode" runat="server" Text="SIC" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtSicCode"></asp:Label><asp:TextBox ID="TxtSicCode" ClientIDMode="Static"
                                CssClass="st-forminput st-disable" runat="server" Width="50px"></asp:TextBox><asp:HiddenField
                                    ID="hdnBussId" ClientIDMode="Static" runat="server" />
                    </div>
                    <div class="clear">
                        <asp:HiddenField ID="HiddenField1" ClientIDMode="Static" runat="server" />
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">

               <span class="st-labeltext">Address Line1</span> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="please input Address Line1 "
                            ControlToValidate="TextBoxAddressLine1" ForeColor="Red" ValidationGroup="orgs"
                            Display="Dynamic">*</asp:RequiredFieldValidator><asp:TextBox ID="TextBoxAddressLine1" CssClass="st-forminput" runat="server" Width="210px"
                            ValidationGroup="service"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine2" runat="server" Text="Address Line 2" CssClass="st-labeltext level1"

                            AssociatedControlID="TextBoxAddressLine2"></asp:Label><asp:TextBox ID="TextBoxAddressLine2"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine3" runat="server" Text="Address Line 3" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxAddressLine3"></asp:Label><asp:TextBox ID="TextBoxAddressLine3"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelFullDescription" runat="server" Text="Full Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxFullDescription"></asp:Label><asp:TextBox ID="TextBoxFullDescription"
                                CssClass="st-forminput" runat="server" Width="210px" TextMode="MultiLine" Rows="3"></asp:TextBox><br /><br /><asp:Label ID="LabelPhoneNumber" runat="server" Text="Phone Number" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxPhoneNumber">

                            <asp:RequiredFieldValidator ID="RequiredPhoneNumber" runat="server" ErrorMessage="*please input phone number"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxPhoneNumber" ValidationGroup="orgs" />

                        </asp:Label><asp:TextBox ID="TextBoxPhoneNumber" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox><div class="clear"><asp:RegularExpressionValidator ID="RequiredP" runat="server" ControlToValidate="TextBoxPhoneNumber"
                                    Display="None" SetFocusOnError="true" ErrorMessage="*phone number must digit"
                                    ForeColor="Red" ValidationExpression="[0-9]{10}" ValidationGroup="orgs"></asp:RegularExpressionValidator></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelPostcode" runat="server" Text="Postcode" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TxtPostcode">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Please input Post code"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="txtPostCode" />
                        </asp:Label><asp:TextBox ID="txtPostCode" CssClass="st-forminput st-disable" ClientIDMode="Static"
                            runat="server" Width="150px" Enabled="False"></asp:TextBox><asp:LinkButton ID="ButtonPostcodeLookup"
                                runat="server" CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopupAddress()" /></div>
                    <div class="half last">
                        <asp:Label ID="LabelFax" runat="server" Text="Fax" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxFax">  </asp:Label><asp:TextBox ID="TextBoxFax" CssClass="st-forminput"
                                runat="server" Width="210px"></asp:TextBox><div class="clear">
                                </div>
                    </div>
                    <div class="clear">
                        <asp:HiddenField ID="hdnAddressId" ClientIDMode="Static" runat="server" />
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCityTown" runat="server" Text="City/Town" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCityTown"></asp:Label><asp:TextBox ID="TextBoxCityTown"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelEmail" runat="server" Text="Email" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxEmail"></asp:Label><asp:TextBox ID="TextBoxEmail" CssClass="st-forminput"
                                runat="server" Width="210px"></asp:TextBox><div class="clear"><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail"
                                    Display="None" EnableTheming="True" ValidationGroup="orgs" ErrorMessage="*Email format is invalid"
                                    ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ></asp:RegularExpressionValidator></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCounty" runat="server" Text="County" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCounty"></asp:Label><asp:TextBox ID="TextBoxCounty" CssClass="st-forminput"
                                runat="server" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelWebAddress" runat="server" Text="Web Address" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxWebAddress"></asp:Label><asp:TextBox ID="TextBoxWebAddress"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox><div class="clear"><asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ForeColor="Red"
                                        ControlToValidate="TextBoxWebAddress" Display="None" ValidationGroup="orgs" ErrorMessage="*Web Address format is invalid"
                                        ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelNationCounty" runat="server" Text="Nation County" CssClass="st-labeltext level1"
                            AssociatedControlID="DropDownListNationCounty"></asp:Label><asp:DropDownList ID="DropDownListNationCounty"
                                DataTextField="CountryName" DataValueField="CountryId" runat="server" CssClass="st-forminput"
                                Width="220px">
                            </asp:DropDownList>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelCharityNumber" runat="server" Text="Charity Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCharityNumber"></asp:Label><asp:TextBox ID="TextBoxCharityNumber"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        &nbsp; </div><div class="half last">
                        <asp:Label ID="LabelCompanyNumber" runat="server" Text="Company Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCompanyNumber"></asp:Label><asp:TextBox ID="TextBoxCompanyNumber"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="DetailsPanel02" ClientIDMode="Static" runat="server">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelOrgSpecial" runat="server" Text="Organization Specialism" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListOrgSpecial"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListOrgSpecial" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                    <asp:ListItem>Blind</asp:ListItem><asp:ListItem>Deaf</asp:ListItem><asp:ListItem>Dyslexia</asp:ListItem><asp:ListItem>Learning</asp:ListItem><asp:ListItem>Mental</asp:ListItem></asp:CheckBoxList></div></div><div class="half last">
                        <asp:Label ID="Label1" runat="server" Text="Service Personal Circumstances Capabilities"
                            CssClass="st-labeltext level1 checked-box-list" AssociatedControlID="CheckBoxListCircumstances"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListCircumstances" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                    <asp:ListItem>Carer Reponsibilities</asp:ListItem><asp:ListItem>Lone Parent</asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label2" runat="server" Text="Service Disabilities Capabilities" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListOrgSpecial"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListDisabilities" runat="server">
                                    <asp:ListItem>Chest</asp:ListItem><asp:ListItem>Condition</asp:ListItem><asp:ListItem>Diabetes</asp:ListItem><asp:ListItem Value="Difficulty">Diffi</asp:ListItem></asp:CheckBoxList></div></div><div class="half last">
                        <asp:Label ID="Label3" runat="server" Text="Service Ethnicity Capabilities" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListCircumstances"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListEthnicity" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                    <asp:ListItem>White British</asp:ListItem><asp:ListItem>White Irish</asp:ListItem><asp:ListItem>Other White</asp:ListItem><asp:ListItem Value="White &amp; Black">White and </asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label4" runat="server" Text="Service Barriers Capabilities" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListBarriers"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListBarriers" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                    <asp:ListItem>Lone Parent</asp:ListItem><asp:ListItem>ESOL</asp:ListItem><asp:ListItem>Refugee</asp:ListItem><asp:ListItem Value="Basic Skills">Basic Skill</asp:ListItem></asp:CheckBoxList></div></div><div class="half last">
                        <asp:Label ID="Label5" runat="server" Text="Accreditation" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListAccreditation"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListAccreditation" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                    <asp:ListItem>Two Ticks</asp:ListItem><asp:ListItem>Inveestors</asp:ListItem><asp:ListItem>ISO 9001</asp:ListItem><asp:ListItem>ISO 1401</asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label6" runat="server" Text="Service Benefits Capabilities" CssClass="st-labeltext level1 "
                            AssociatedControlID="CheckBoxListBarriers"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListBenefits" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                    <asp:ListItem>Disability leaving</asp:ListItem><asp:ListItem>Employee</asp:ListItem><asp:ListItem>Incapacity</asp:ListItem><asp:ListItem>Income</asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
            </asp:Panel>
              <asp:Panel ID="DetailsPanel03" ClientIDMode="Static" runat="server" Visible="False" >
                <div class="st-form-line-noleft">
                    <asp:Label ID="LabelPrograms" runat="server" Text="EOI Programs" CssClass="st-labeltext level1"
                        AssociatedControlID="CblPrograms"></asp:Label><div class="st-forminput left check-box-list"
                            style="width: 250px; height: 150px;">
                            <asp:CheckBoxList ID="CblPrograms" runat="server" DataTextField="ProgramName" DataValueField="ProgramID">
                            </asp:CheckBoxList>
                        </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <asp:Label ID="LabelServices" runat="server" Text="EOI Services" CssClass="st-labeltext level1 checked-box-list"
                        AssociatedControlID="CblServices"></asp:Label><div class="st-forminput left check-box-list"
                            style="width: 250px; height: 150px;">
                            <asp:CheckBoxList ID="CblServices" runat="server">
                            </asp:CheckBoxList>
                        </div>
                    <div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="DetailsPanel04" ClientIDMode="Static" runat="server">
                <wuc:PremiseFrame ID="PremiseFrame1" runat="server" />
            </asp:Panel>
            <asp:Panel ID="DetailsPanel05" ClientIDMode="Static" runat="server" Visible="false">
                <asp:UpdatePanel ID="UpdatePanelSupportingMaterial" runat="server">
                    <ContentTemplate>
                        <asp:PlaceHolder ID="HolderSupportingMaterial" runat="server"></asp:PlaceHolder>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
            <asp:Panel ID="DetailsPanel06" ClientIDMode="Static" runat="server" Visible="false">
                <asp:UpdatePanel ID="UpdatePanelDirectorate" runat="server">
                    <ContentTemplate>
                        <asp:PlaceHolder ID="HolderDirectorate" runat="server"></asp:PlaceHolder>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
